/**
 * 签单列表
 * Created by douxc on 2015/4/22.
 */
define(function (require, exports, module) {
  'use strict';
  module.exports = function (app) {
    app.register.controller('VerifyListCtrl', ['$scope', 'MHService', function ($scope, MHService) {
      $scope.URL = MHService.URL.verify;
      $scope.has_verify = MHService.URL.has_verify;
      var current = MHService.cacheData(false, {key: 'currentVerify'});
      $scope.showFirst = (!current || 'needVerify' === current);
      $scope.changeVerifyList = function (flag) {
        $scope.showFirst = (flag === 0);
        //if (flag === 0) {
        //  MHService.cacheData(true, {key: 'currentVerify', value: 'needVerify'});//待审批
        //} else {
        //  MHService.cacheData(true, {key: 'currentVerify', value: 'hasVerify'});//待审批
        //}
      }
    }]);
  };
});
